import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import { registerMicroApps, start } from 'qiankun';

registerMicroApps([
  {
    name: 'child-app',
    entry: '//localhost:8081',
    container: '#child-container',
    activeRule: '#/child-app',
    props: {
      sendMessage: 'Vue子应用：传递的数据'
    }
  },
  {
    name: 'child-react',
    entry: '//localhost:8082/child-react/',
    container: '#child-container',
    activeRule: '#/child-react',
    props: {
      sendMessage: 'React子应用：传递的数据'
    }
  }
]);
// 启动 qiankun
start();

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
